package DesignMode.COR;

/**
 * @author VX5
 * @Title: MJC
 * @ProjectName DataStructure
 * @Description: TODO
 * @date ${DAT}14:55
 */
public class ConcreteHandler2 extends Handler {
    @Override
    public void HandleRequest(int request) {
        if (request >= 10 && request < 20){
            System.out.println(this.getClass().getName()+"处理请求"+request);
        }else if (successor != null){
            successor.HandleRequest(request);
        }
    }
}
